const getters = {
  showLg: state => state.authorize.showLg, //是否显示登录授权弹框
  showPhone: state => state.authorize.showPhone, //是否显示手机号授权弹框
  eleInfo: state => state.home.eleInfo, //电梯详情
  eleList: state => state.follow.eleList, //我的关注列表
  complainList: state => state.complaint.complainList, //投诉建议列表
  my_complainList: state => state.complaint.my_complainList, //我的投诉列表
  tabs: state => state.home.tabs,
  recordList: state => state.home.recordList,//记录分页
  maintainRecordList: state => state.home.maintainRecordList, //保养记录
  repairsRecordList: state => state.home.repairsRecordList, //维保记录
  // 所在小区
  myCell: state => {
	  let list = [];
	  let listCell = state.mine.cellList;
	  for (let i = 0; i < listCell.length; i++) {
	  	let obj = {
	  		value: listCell[i].id,
	  		label: listCell[i].regionName,
			show:true
	  	};
	  	list.push(obj)
	  }
	  return list
  },
  // 小区列表
  listCell: state => {
	let list = [];
	let listCell = state.mine.listCell;
	for (let i = 0; i < listCell.length; i++) {
		let obj = {
			value: listCell[i].id,
			label: listCell[i].regionName
		};
		list.push(obj)
	}
	return list
  }
}
export default getters